Stitch: The Sound Type-Indexed Type Checker (Author's Cut)
ثبت نشده
چکیده
RICHARD A. EISENBERG, Bryn Mawr College, USA A classic example of the power of generalized algebraic datatypes (GADTs) to verify a delicate implementation is the type-indexed expression AST. This functional pearl refreshes this example, casting it in modern Haskell using many of GHC’s bells and whistles. The Stitch interpreter is a full executable interpreter, with a parser, type checker, common-subexpression elimination, and a REPL. Making heavy use of GADTs and type indices, the Stitch implementation is clean, idiomatic Haskell and serves as an existence proof that Haskell’s is advanced enough for the use of fancy types in a practical setting.
منابع مشابه
مقایسه پاسخ بافتی اطراف سه نوع نخ بخیه سیلک غیرقابل جذب چند رشته ای: یک مطالعه حیوانی
Introduction: The tissue reaction to stitch strings used in the intraoral surgery that can aggravate inflammation is an important issue. This study aimed to compare the tissue reaction formed around three types of stitches, including Demesilk (Demetech corporation,USA) that is not produced inside the country, Pedsilk and Suture, which all are natural nonabsorbable, on rats. Methods: In this ex...
متن کاملPatina: A Formalization of the Rust Programming Language
Rust is a new systems language that uses some advanced type system features, specifically affine types and regions, to statically guarantee memory safety and eliminate the need for a garbage collector. While each individual addition to the type system is well understood in isolation and are known to be sound, the combined system is not known to be sound. Furthermore, Rust uses a novel checking ...
متن کاملNumerical study on the acoustic field of a centrifugal fan and the tonal noise sources
The widespread use of squirrel cage fans, especially in ventilation and home and industrial environments, has led to the formation of many research efforts to improve performance and reduce the sound produced by this type of fan. In the literature, the most important factor in generating sound in this category of fans is the confrontation between the rotor exit flow and the volute of the fan. I...
متن کاملWell-Typed Languages are Sound
Type soundness is an important property of modern programming languages. In this paper we explore the idea that well-typed languages are sound : the idea that the appropriate typing discipline over language specifications guarantees that the language is type sound. We instantiate this idea for a certain class of languages defined using small step operational semantics by ensuring the progress a...
متن کاملتحلیل استنادی و ترسیم نقشه علمی تولیدات پژوهشگران ایرانی در زمینه سلولهای بنیادی نمایه شده در پایگاه نمایه استنادی علوم تا سال 2015
Introduction: For new scientific field to achieve more coherent position, it needs scientometric analysis more than other fields. This study aims to use citation analysis and scientific mapping of Iranian researchers' publications in stem cell indexed in science citation database up to 2015 Methods: This is an applied descriptive study using scientific mapping method. The population of this ...
متن کامل